package com.yongan.warehouse.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yongan.warehouse.entity.Goodsinformation;

public interface GoodsinformationDao {

	
	Goodsinformation queryById(String goodsinformationId);
	
	List<Goodsinformation> queryAll(@Param("offset")int offset,@Param("limit")int limit);
	
	int insertGoodsinformation(Goodsinformation goodsinformation);
	
	int deleteGoodsinformation(String goodsinformationId);
	
	int updateGoodsinformation(Goodsinformation goodsinformation);
	
	int queryCount();
	
	List<Goodsinformation> queryAllTree();
	
	int reduceNumber(@Param("goodsinformationNumber")String goodsinformationNumber,@Param("type")String type,@Param("zmkc")int zmkc,@Param("sjkc")int sjkc);
}
